/**
 * package com.synnex.arch.demo.jsf2
 * class com.synnex.arch.demo.jsf2.CheckStyleDemo
 * Created on 07/05/2012, 14:24:13 
 * @author diegol
 */
package com.synnex.arch.demo.jsf2;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 * <b>Description</b>: In JSF 1.x, you had to declare this beans in the faces-config.xml, but this is no longer required in JSF 2.0.
 * <p><b>Features or change log:</b>
 * <ol>
 * <li>07/05/2012, 14:24:13, diegol, C001: xxx xx xcxv </li>
 * </ol>
 */
@ManagedBean(name = "user")
@SessionScoped
public class CheckStyleDemo {

    private String name;

    public CheckStyleDemo() {
    }

    public String getName() {
        System.out.println("xxxxxxxxxxxxxxxxxxxxx");
        return name;
    }

    public void setName(String name) {
        new Exception().printStackTrace();
        this.name = name;
    }

    public String sayHello() {
        new Exception().printStackTrace();
        return "greeting";
    }
}
